<div class="indexMessBox">

    <include file="Template/default/info_list_select.php"/>

<div class="messlist" id="messlist">
    <div class="messlist" id="messlist">

        <?php $i = 0;
        foreach ($data as $k => $v) { ?>
            <div class="<?php

                $grid = isset(C('info_grid')[$v['type']]) ? C('info_grid')[$v['type']] : 1 ;
                $i += isset(C('grid_style')[$grid]) ? C('grid_style')[$grid] : 1;


                if ($i > 12) {
                    $i = $i - 12;
                }
                if ($i <= 6) {
                    $even = 2;
                } else {
                    $even = 1;
                }
            if($v['type'] > 0) {
                echo 'mTBox' . $grid . '_' . $even;
            }else{
                echo 'mBox' . $even;
            }

            ?>" kflBox="<?php echo $v['id']; ?>" data-i="<?php echo $i;?>">
                <div class="flag"></div>
                <div class="title"><a href="<?php echo UU('Info/info/index',array('id'=>$v['id']));?>" alt="<?php echo $v['title']; ?>"
                                      target="_blank"><?php echo mb_substr($v['title'],0,10,'utf-8'); ?></a></div>
                <div class="mBoxContent">
                    <strong><?php echo $allCategory[$v['cid']]; ?></strong><?php if($grid < 4 ){ echo mb_substr($v['content'],0,100,'utf-8').'...';}else{ echo $v['content'] ; } ?><br/>
                    <?php if($grid < 2){?>
                    <span>联系人：</span><?php echo $v['linkman']; ?><br/>


                    <?php if(!empty($v['phone'])){?>
                        <span>手&nbsp;&nbsp;&nbsp;机：</span><span onclick="fTelSeth(this)" onmouseover="fTelInfo(this,1)" onmouseout="fTelInfo(this,2)" class="num"><?php echo $v['phone']; ?></span><br>
                    <?php } ?>
                    <?php if(!empty($v['qq'])){?>
                        <span>Q&nbsp;&nbsp;&nbsp;Q&nbsp;：</span><span class="num" title="点击这里给我发消息" onclick="fQQTalk('<?php echo $v['qq']; ?>')"><?php echo $v['qq']; ?></span><br>
                    <?php } ?>
                    <?php if(!empty($v['tel'])){?>
                        <span>电&nbsp;&nbsp;&nbsp;话：</span><span onclick="fTelSeth(this)" class="num"><?php echo $v['tel']; ?></span><br>
                    <?php } ?>
                    <?php } ?>
                </div>



                <div class="mBoxPrice">
                    <?php if(empty($v['money']) || $v['money'] == 0){ ?>
                        <strong></strong><span>面议</span>
                    <?php }else{ ?>
                        <strong>￥</strong><span><?php echo $v['money']; ?></span>
                    <?php } ?>
                </div>
                <div class="mBoxDate"><?php echo date('Y/m/d',strtotime($v['create_time']));?>
                    <span class="boxConsole" id="bcl<?php echo $v['id'];?>"></span>
                </div>
            </div>
        <?php } ?>
    </div>

    <script type="text/javascript" src="__THEME_PATH__js/box.js"></script>

    <div class="xr">
        <div class="adBox" style="margin:0px 0px 0px 0px; width:auto; height:auto;"></div>
        <div class="adBox" style="margin:0px 0px 3px 0px; width:232px; height:250px;"><img
                src="__THEME_PATH__images/20160704742332.gif" style="width:232px; height:250px;"/></div>
        <div class="adBox" style="margin:0px 0px 8px 0px; width:232px; height:250px;"><img
                src="__THEME_PATH__images/20160704266558.jpg" style="width:232px; height:250px;"/></div>
    </div>

    <div class="clear"></div>

    <div class="pagelist">
        <table border="0" align="center" cellspacing="0" cellpadding="0">

            <tr>

                <td>
                    {$pageShow}
                </td>

            </tr>

        </table>

    </div>

    <div class="clear"></div>

</div>

<div class="clear"></div>



</div>